package base.day20;

import java.util.TreeSet;

public class MyTreeSet3 {
    public static void main(String[] args) {
        TreeSet<Student> stus=new TreeSet<>();
        Student stu=new Student("zhangsan",24);
        Student stu2=new Student("lisi",30);
        Student stu3=new Student("wangwu",24);
        stus.add(stu);
        stus.add(stu2);
        stus.add(stu3);

        System.out.println(stus);
    }
}
